import 'package:intl/intl.dart';

extension ExDate on DateTime {
  String getDashYmd() {
    var from = DateFormat("yyyy-MM-dd HH:mm:ss");
    var to = DateFormat("yyyy-MM-dd");
    return to.format(from.parse(toString()));
  }

  String getPointYmd() {
    var from = DateFormat("yyyy-MM-dd HH:mm:ss");
    var to = DateFormat("yyyy.MM.dd");
    return to.format(from.parse(toString()));
  }
}
